# Django settings for ca_current project.
from lingcod.common.default_settings import *

BASE_DIR = os.path.dirname(os.path.abspath(__file__))

DATABASE_ENGINE = 'postgresql_psycopg2'

TIME_ZONE = 'America/Vancouver'
LANGUAGE_CODE = 'en-us'
SITE_ID = 1
USE_I18N = True

ROOT_URLCONF = 'ca_current.urls'

TEMPLATE_DIRS = ( os.path.realpath(os.path.join(os.path.dirname(__file__), 'templates').replace('\\','/')), )

INSTALLED_APPS += ( 'zones', 'poi', 'lingcod.raster_stats')

MPA_CLASS = 'zones.models.Zone'
ARRAY_CLASS = 'zones.models.ZoneArray'
MPA_FORM = 'zones.forms.ZoneForm'
ARRAY_FORM = 'zones.forms.ZoneArrayForm'

import os
MEDIA_ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__),'..','mediaroot'))
MEDIA_URL = "http://maps5.msi.ucsb.edu/media/"

GEOMETRY_DB_SRID = 4326
KML_SIMPLIFY_TOLERANCE = 0.0002
KML_EXTRUDE_HEIGHT = 999
KML_UNATTACHED_NAME = "Unattached Zones"

CARROT_BACKEND = "ghettoq.taproot.Database"
CELERY_RESULT_BACKEND = 'database'

DISPLAY_AREA_UNITS = "sq_mi"
DEBUG = True
GROUP_REGISTERED_BY_WEB = 'Registered By Web'  #Group name assigned to users who register using the web interface

COMPRESS_JS['application']['source_filenames'] += ( 
    'impactChart.js', 
)

COMPRESS_CSS['application']['source_filenames'] += (
    'common/css/chart.css',
)

from settings_local import *
